<template>
  <el-table-column
    :label="label"
    :prop="prop"
    :width="width"
    min-width="120"
  >
    <template v-if="$slots.default" #default="scope">
      <slot :row="scope.row" :index="scope.$index"></slot>
    </template>
  </el-table-column>
</template>

<script>
/**
 Author: 蒋鑫强
 Time: 2023/6/2
 Description:
 */
export default {
  name: 'Column',

  props: {
    /**
     * 列类型
     */
    label: {
      type: String,
      default: ''
    },

    prop: {
      type: String,
      default: ''
    },

    width: {
      type: [String, Number],
      default: ''
    }
  }
}
</script>

<style lang="less" scoped>

</style>
